<template>
    <div id="footer">
          <div id="friend">
            友情链接：
          </div>
          <div id="zidian">

            <a :href="item.dictValue" target="_blank"
               v-for="item in zidianList" :key="item.dictCode">
               {{ item.dictLabel }}
            </a>
          </div>
          <div id="line"></div>
          <div id="footer-text">Copyright © 2017-2025 石家庄天亮教育科技有限公司 备案号:冀ICP备17020003号</div>
        </div>
</template>

<script>
import { getZidian} from "@/api/request.js";
export default {
data() {
    return {
        zidianList: [], 
    }
   
},
created() {
   getZidian('blogroll').then(res => {  
            this.zidianList =res.rows ;  
        })
    }
}
</script>

<style lang="scss">
#footer {
    
    width: 100%;
    height: 200px;
    background-color: #000;
    margin-top: 20px;
    #friend {
       width: 600px;
       height: 100px;
       margin:30px auto;
       line-height: 100px;
       color: #fff;
       font-size: 25px;
    }
    #line{
      width:1000px;
      height: 1px;
      margin: 0 auto;
      border-bottom: 1px solid gray;
    }
    #footer-text {
       width: 1160px;
       height: 30px;
       margin: 5px auto;
       color: gray;
       text-align: center;
    }
}
#zidian {
   margin-top: -40px ;
   height: 40px;
   display: flex;
   justify-content: center;
   align-items: center;
   a{
      color: gray;
      font-size: 15px;
      margin:10px 20px;
      text-decoration: none;
   }
}

</style>